package com.lzj.admin.config;


import com.lzj.admin.interceptors.NotLoginInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;


/**
 * @author lv854
 */
@Configuration
public class MvcConfig extends WebMvcConfigurerAdapter {

//    @Bean
//    public NotLoginInterceptor notLoginInterceptor(){
//        return new NotLoginInterceptor();
//    }
//
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(notLoginInterceptor())
//                .addPathPatterns("/**")
//                //放行的地址
//                .excludePathPatterns("/index","/user/login","/css/**","/erroe/**","/image/**","/js/**","/lib/**");
//    }
}
